package com.yangl.corejava.pattern.proxy;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ProxyPeople p=new ProxyPeople();
		p.eat();
		p.happy();
		
		System.out.println("---------------------");
		
		ProxyPeople p1=new ProxyPeople(new Dog());
		p1.eat();
		p1.happy();
	}

}
